function FeedExp(){
	
	var self = Ti.UI.createWindow({
		layout:"vertical",
		backgroundColor:'#ffffff'
	});
	
	
	var mainView = Ti.UI.createScrollView({
		layout:'vertical'
	});
	

	var data = [];
	var xhr = Ti.Network.createHTTPClient();
	xhr.open("GET","http://thethao.vnexpress.net/rss/tin-moi-nhat.rss");
	xhr.onload = function()
	{
		var doc = this.responseXML.documentElement;
		var items = doc.getElementsByTagName("item");
		var x = 0;
		var doctitle = doc.evaluate("//channel/title/text()").item(0).nodeValue;
		for (var c=0;c<items.length;c++)
		{
			var item = items.item(c);
			var strDesc = item.getElementsByTagName("description").item(0).text;
			var date = item.getElementsByTagName("pubDate").item(0).text;
		   	var title = item.getElementsByTagName("title").item(0).text;
		   	var description = item.getElementsByTagName("description").item(0).text;
		   	var row = Ti.UI.createTableViewRow({height:80});
		   	
		   	var src = strDesc.match(/src="([^\"]*)"/gim);
		   	var imgPath = src[0].replace(/src=|"/gim, "");
		   	
		   	var img = Ti.UI.createImageView({
		   		image:imgPath,
			      left:5,
			      height:60,
			      width:60
		    });
		    
		   	row.add(img);
		   	
		   	var label = Ti.UI.createLabel({
		      text:title,
		      left:70,
		      top:20,
		      bottom:5,
		      right:5
		    });
		    row.add(label);
		    data[x++] = row;
		    row.url = item.getElementsByTagName("link").item(0).text;
		}
		var tableview = Titanium.UI.createTableView({data:data});
		mainView.add(tableview);
	};
	xhr.send();
	
	self.add(mainView);
	return self;
}
module.exports = FeedExp;